#ifndef _RB_TREE_API_H_
#define _RB_TREE_API_H_
#endif

#ifdef _RB_TREE_API_H_
#include "rbtree.h"
int rb_get_size(struct rb_root *root);
struct rb_node *rb_preorder_show(struct rb_node *node, void (*show_func)(struct rb_node *node));
struct rb_node *rb_preorder_get(struct rb_node *node, struct rb_node *to_nodes, int *size);
struct rb_node *rb_infixorder_show(struct rb_node *node, void (*show_func(struct rb_node *node)));
struct rb_node *rb_infixorder_get(struct rb_node *node, struct rb_node *to_nodes, int *size);
struct rb_node *rb_postorder_show(struct rb_node *node, void (*show_func(struct rb_node * node)));
struct rb_node *rb_postorder_get(struct rb_node *node, struct rb_node *to_nodes, int *size);


#endif
